package com.ztools.pc.service.information;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ztools.common.model.pc.information.InformationPoint;
import com.ztools.common.util.common.PageUtil;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author seeTools
 * @since 2023-06-02
 */
public interface InformationPointService extends IService<InformationPoint> {

    /**
     * 分页查询
     *
     * @param pageUtil 分页数据
     * @return 对象
     */
    Page<InformationPoint> findList(PageUtil<InformationPoint> pageUtil);


    /**
     * 根据对象查询
     *
     * @param informationPoint informationPoint
     * @return InformationPoint
     */
    List<InformationPoint> findByObject(InformationPoint informationPoint);


    /**
     * 修改
     *
     * @param informationPoint informationPoint
     * @return boolean
     */
    boolean update(InformationPoint informationPoint);

    /**
     * 删除
     *
     * @param informationPoint informationPoint
     * @return boolean
     */
    boolean delete(InformationPoint informationPoint);

    /**
     * 增加积分
     *
     * @param informationPoint informationPoint
     * @return boolean
     */
    boolean increase(InformationPoint informationPoint);

    /**
     * 减少
     *
     * @param informationPoint informationPoint
     * @return boolean
     */
    boolean reduce(InformationPoint informationPoint);

    /**
     * 导出
     *
     * @param response         response
     * @param informationPoint informationPoint
     */
    void exportExcel(HttpServletResponse response, InformationPoint informationPoint);
}
